package com.liveinstars.im.domain.manager.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.liveinstars.im.domain.dao.model.Badword;
import com.liveinstars.im.domain.dao.mapper.BadwordMapper;
import com.liveinstars.im.domain.manager.BadwordManager;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 屏蔽词 服务实现类
 * </p>
 *
 * @author 8btc
 * @since 2020-03-31
 */
@Service
public class BadwordManagerImpl extends ServiceImpl<BadwordMapper, Badword> implements BadwordManager {

    @Override
    public List<Badword> listAll() {
        QueryWrapper<Badword> queryWrapper = new QueryWrapper<>();
        List<Badword> list = this.list(queryWrapper);
        return list;
    }
}
